package org.fuys.coder.domain.auth.service.common.login.impl;

import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
import org.fuys.coder.common.entity.Pair;
import org.fuys.coder.common.util.EncryptUtil;
import org.fuys.coder.domain.auth.model.req.LoginReq;
import org.fuys.coder.domain.auth.model.res.AuthFailedEnum;
import org.fuys.coder.domain.auth.model.vo.UserVo;
import org.fuys.coder.domain.auth.repository.ICommonRepository;
import org.fuys.coder.domain.auth.service.common.login.ICommonLoginService;
import org.fuys.coder.domain.auth.service.handler.login.LoginHandlerChain;
import org.fuys.coder.domain.file.service.AliYunOSSService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @projectName: fuys-low-coder
 * @package: org.fuys.coder.domain.auth.service.common.login.impl
 * @className: CommonLoginServiceImpl
 * @author: WangJing
 * @description: 普通用户登录实现
 * @date: 2024/6/18 20:12
 * @version: 1.0
 */
@Service
public class CommonLoginServiceImpl implements ICommonLoginService {



    @Resource
    private LoginHandlerChain loginHandlerChain;



    @Override
    public Pair<Integer, UserVo> doLogin(LoginReq req) {
        return loginHandlerChain.doHandle(req);
    }
}
